package com.wc.alorithm_luogu.P5744;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/24 15:32
 * @description https://www.luogu.com.cn/problem/P5744
 * 培训
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Student[] students = new Student[n];

        for (int i = 0; i < n; i++) {
            Student student = new Student();
            student.name = sc.next();
            student.age = sc.nextInt() + 1;
            student.setScore(sc.nextInt() * 12 / 10);
            students[i] = student;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(students[i]);
        }
    }
}


class Student {
    public String name;
    public int age;
    public int score;

    public void setScore(int score) {
        if (score >= 600) {
            score = 600;
        }
        this.score = score;
    }

    @Override
    public String toString() {
        return name + " " + age + " " + score;
    }
}
